import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/agencyManager/agencyInfo/draftList',
    method: 'post',
    data: params
  })
}

export function getId(params) {
  return request({
    // url: `/agencyManager/agencyInfo/draftDetail`,
    url: `/mgrService/agencyInformation/draftDetail`,
    method: 'post',
    data: params
  })
}

export function delId(id) {
  return request({
    url: `/manager/information/removeInfo/${id}`,
    method: 'post',
    data: {id}
  })
}

export function delIds(params) {
  return request({
    url: '/manager/information/infoBatchOperation',
    method: 'post',
    data: params
  })
}

export function update(params) {
  return request({
    url: '/mgrService/agencyInformation/draftEdit',
    method: 'post',
    data: params
  })
}

export function getSections(params) {
  return request({
    url: '/manager/information/sections',
    method: 'post'
  })
}

export function getSectionCascade(params) {
  return request({
    url: '/agencyManager/infoSection/infoSectionCascade',
  })
}

export function getInfoLabels(params) {
  return request({
    url: '/agencyManager/infoLabel/infoLabels',
    method: 'post',
    data:params
  })
}

export function add(params) {
  return request({
    url: '/mgrService/agencyInformation/insertAgencyInformation',
    method: 'post',
    data: params
  })
}

